<!DOCTYPE html>
<html>
<head>
    <meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Baidu Map </title>
    <script type="text/javascript" src="http://api.map.baidu.com/api?key=r9z39vrGR8pMLCdrBS60YkTDu9UmfS8i&v=1.2&services=true"></script>
    <style type="text/css">
        html{height:100%}
        body{height:100%;margin:0px;padding:0px}
        #container{height:100%}
    </style>
</head>
<body>
<div style="width:520px;height:340px;border:1px solid gray" id="container"></div>
<div id="results" style="font-size:13px;margin-top:10px;"></div>
<input type="hidden" id="lon" value="112.53">
<input type="hidden" id="lat" value="37.87">
</body>
<!--112.53,37.87  {$list.lon}  {$list.lat}-->
<script src="__PUBLIC__assets/js/jquery-1.11.3.min.js"></script>
<script type="text/javascript">
    var log=$('#lon').val(),
        lat=$('#lat').val();
    var map = new BMap.Map("container");          // 创建地图实例
    var point = new BMap.Point(log,lat);  // 创建点坐标
    map.centerAndZoom(point, 15);                 // 初始化地图，设置中心点坐标和地图级别
    map.enableScrollWheelZoom(true);     //开启鼠标滚轮缩放
    var marker = new BMap.Marker(point);
    map.addOverlay(marker);

</script>

</html>
